<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css" media="screen">@import "../style.css";</style>
<title> VideoExpress - PHP Projet</title></head>

<body>
<div class="center">
<div class="outer" id="outer">
<div class="outer_l">
<div class="outer_r">
<!--ENTETE-->
<?php 
include ("../inc/inc-entete.php");
?>
<!--FIN ENTETE-->
<div class="right">
<a href="../Accueil.php"><span>Accueil</span></a> | <a href="Menu_Retour.php"><span>Menu Retour</span></a>
</div>
<div class="wrap main">
<div class="wrap main_l">
<div class="wrap main_r">
<!--MENU-->
<?php 
include ("../inc/inc-menu_retour.php");
?>
<!--FIN MENU-->
			
<!--CONTENT-->
<div class="center">
<div class="wrap main_content_max" id="main_content">
<div class="content">
<table class="blog" cellpadding="0" cellspacing="0">
<tr><td valign="top"><div>
		
<table class="contentpaneopen">
<tr><td class="contentheading" width="100%">MODIFIER DES FICHES D'ABONNES</td></tr>
</table>
<table class="contentpaneopen"><tr><td valign="top" colspan="2">

<?php
require ("../Outils.inc");
require ("../connect.php");

$Code = $_POST['Code'];
$Nom = $_POST['Nom'];
$Prenom = $_POST['Prenom'];
$NoRue = $_POST['NoRue'];
$CodePostal = $_POST['CodePostal'];
$Ville = $_POST['Ville'];
$Batiment = $_POST['Batiment'];
$Etage = $_POST['Etage'];
$Digicode = $_POST['Digicode'];
$Telephone = $_POST['Telephone'];
$Email = $_POST['Email'];
$Banque = $_POST['Banque'];
$Guichet = $_POST['Guichet'];
$Compte = $_POST['Compte'];
$NbCassettes = $_POST['NbCassettes'];

$req="UPDATE `abonnes` SET `Nom` = '$Nom', `Prenom` = '$Prenom', `NoRue` = '$NoRue', `CodePostal` = '$CodePostal', `Ville` = '$Ville', `Batiment` = '$Batiment', `Etage` = '$Etage', `Digicode` = '$Digicode', `Telephone` = '$Telephone', `Email` = '$Email', `Banque` = '$Banque', `Guichet` = '$Guichet', `Compte` = '$Compte', `NbCassettes` = '$NbCassettes' WHERE `Code` = '$Code'";
$req1="Select * FROM `abonnes` WHERE `Code` LIKE '$Code'";

DB_execSQL($req,$serv);
$resul = DB_execSQL($req1,$serv);

echo "<font size='2'>Les modifies des fiches d'abonn�e a �t� bien enregistr�</font>";
while ( $abonne = mysql_fetch_object($resul) ) {
echo "<fieldset><table>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Code:</font></div></td>
					<td><font size='2'>$abonne->Code</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Nom:</font></div></td>
					<td><font size='2'>$abonne->Nom</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Prenom:</font></div></td>
					<td><font size='2'>$abonne->Prenom</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Num�ro de rue:</font></div></td>
					<td><font size='2'>$abonne->NoRue</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>CodePostal:</font></div></td>
					<td><font size='2'>$abonne->CodePostal</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Ville:</font></div></td>
					<td><font size='2'>$abonne->Ville</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Batiment:</font></div></td>
					<td><font size='2'>$abonne->Batiment</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Etage:</font></div></td>
					<td><font size='2'>$abonne->Etage</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Digicode:</font></div></td>
					<td><font size='2'>$abonne->Digicode</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Telephone:</font></div></td>
					<td><font size='2'>$abonne->Telephone</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Email:</font></div></td>
					<td><font size='2'>$abonne->Email</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Banque:</font></div></td>
					<td><font size='2'>$abonne->Banque</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Guichet:</font></div></td>
					<td><font size='2'>$abonne->Guichet</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Compte:</font></div></td>
					<td><font size='2'>$abonne->Compte</font></td>
				  </tr>
				  <tr>
					<td align='right'><div align='left'><font size='2'>Nbcassettes:</font></div></td>
					<td><font size='2'>$abonne->NbCassettes</font></td>
				  </tr>
				</table></fieldset>";
}
?>

</td></tr></table>
<span class="article_separator">&nbsp;</span>
</div></td></tr></table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--FIN CONTENT-->
<!--PIED-->
<?php include ("../inc/inc-pied.php"); ?>
<!-- FIN - PIED -->

</body>
</html>
